<?php

/**
 * @author     Thibaut Cromphaut, Gaïtano Boeraeve, Matthias Mercy
 * @copyright  Copyright (c) 2011 memorygame
 */
class Application_Model_User extends Ahs_Model
{

    /**
     * @var integer
     */
    protected $_id;
    /**
     * @var string
     */
    protected $_email;
    /**
     * @var string
     */
    protected $_password;
    /**
     * @var string
     */
    protected $_displayname;
    /**
     * @var integer
     */
    protected $_worldId;
    /**
     * @var integer
     */
    protected $_levelId;
    

    /**
     * @return integer
     */
    public function getId() {
        return $this->_id;
    }

    /**
     * @param string $id
     */
    public function setId($id)
    {
        $this->_id = $id;
    }

    /**
     * @return string
     */
    public function getEmail()
    {
        return $this->_email;
    }

    /**
     * @param string $email
     */
    public function setEmail($email)
    {
        $this->_email = $email;
    }

    /**
     * @return string
     */
    public function getPassword()
    {
        return $this->_password;
    }

    /**
     * @param string $password
     */
    public function setPassword($password)
    {
        $this->_password = Ahs_Utility::hash($password);
    }

    /**
     * @return string
     */
    public function getDisplayname()
    {
        return $this->_displayname;
    }

    /**
     * @param string $displayname
     */
    public function setDisplayname($displayname)
    {
        $this->_displayname = $displayname;
    }
    
    /**
     * @return integer
     */
    public function getWorldId() {
        return $this->_worldId;
    }

    /**
     * @param integer $worldId
     */
    public function setWorldId($worldId)
    {
        $this->_worldId = $worldId;
    }
    
    /**
     * @return integer
     */
    public function getlevelId() {
        return $this->_levelId;
    }

    /**
     * @param integer $levelId
     */
    public function setLevelId($levelId)
    {
        $this->_levelId = $levelId;
    }
}
